from google.appengine.ext import db


class Dataset(db.Model):
    token = db.StringProperty(default=None)
    fileBlob = db.BlobProperty()
    fileName = db.StringProperty(default=None)
    fileType = db.StringProperty(default=None)
    fileSize = db.IntegerProperty(default=0)
    modifiedAt = db.DateTimeProperty(auto_now=True)    
    ip = db.StringProperty(default=None)
    

class User(db.Model):
    email = db.StringProperty()
    password = db.StringProperty()
    name = db.StringProperty()
    url = db.LinkProperty()
    reference = db.StringProperty()
    createdAt = db.DateTimeProperty(auto_now_add=True)
    modifiedAt = db.DateTimeProperty(auto_now=True)